			function animateMap(){
				$(".dashboard").fadeOut(function(){$("#mapping").css({visibility:'visible'}).fadeIn();});
			}
			function animeMapToAdd(){
				$("#mapping").css({visibility:'hidden'});
				$("#add").fadeIn();
			}
			function animeAddToMap(){
				$("#add").fadeOut();
				$("#mapping").css({visibility:'visible'});
			}
			function animeMapToDashBoard(){
				$("#mapping").css({visibility:'hidden'});
				$(".dashboard").fadeIn();
			}
			function animeCommentsToMap(){
				$("#comments").fadeOut(function(){$("#mapping").css({visibility:'visible'});$("#list_comments").html("");});
			}
			function animeAddCommentsToComments(){
				$("#add_comments").fadeOut(function(){$("#comments").fadeIn();});
			}
			function animeCommentsToAddComments(){
				$("#comments").fadeOut(function(){$("#add_comments").fadeIn();});
			}
			function animeMapToComments(){
				$("#mapping").css({visibility:'hidden'});
				$("#comments").fadeIn();
			}
			
			function setTitleMap(title){
				$("#filterMap").html(title);
			}
			function seeComment(id){
				loadComments(id);
				animeMapToComments();
			}
			
			$(function(){
				$("#add").hide();
				$("#comments").hide();
				$("#add_comments").hide();
				
				$("#restaurant").click(function(){
					loadPlaces(1);
				});
				$("#cafe").click(function(){
					loadPlaces(2);
				});
				$("#magasin").click(function(){
					loadPlaces(3);
				});
				$("#cinema").click(function(){
					loadPlaces(4);
				});
				$("#culture").click(function(){
					loadPlaces(5);
				});
				$("#loisir").click(function(){
					loadPlaces(6);
				});
				$("#hotel").click(function(){
					loadPlaces(7);
				});
				$("#sante").click(function(){
					loadPlaces(8);
				});
				$("#transport").click(function(){
					loadPlaces(9);
				});
				$("#tous").click(function(){
					loadPlaces();
				});
				
				$(".send_button").click(function(){
					var cat=$("#cat").val();
					var name= $("input[name='name']").val();
					addPlace(name,cat);
				});
				
				$(".cancel_button").click(function(){
					animeAddToMap();
				});
				$("#addplacebutton").click(function(){
					animeMapToAdd();
				});
				
				$("#mapping").css({visibility:'hidden'});
				$(".dashboard").css({visibility:'visible'});
				
				
				$("#retour").click(function(){
					// On vire tous les marqueurs
					for(i in places){
						places[i].marker.setMap(null);
						places[i].info.setMap(null);
					}
					places = new Array();
					
					animeMapToDashBoard();
				});	
				
				$("#comments_retour").click(function(){
					animeCommentsToMap();
				});	
				
				$("#comments_add_button").click(function(){
					animeCommentsToAddComments();
				});	
				
				$("#add_comments_retour").click(function(){
					animeAddCommentsToComments();
				});
				
				
				
				/*$("#pouet").click(function(){
					//addComments(1,1,"cool c'est super bien");
					loadComments(1);
					animeMapToComments();
				});*/	
			});